import { defHttp } from "@/utils/http";

// ERP 折旧信息API
export const depreciationApi = {
	// 获得折旧信息分页
	depreciationList: async (params: any) => {
		return await defHttp.get({ url: `/his/depreciation/page`, params });
	},
	// 新增折旧信息
	depreciationCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/depreciation/create`, data });
	},

	// 修改折旧信息
	depreciationUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/depreciation/update`, data });
	},

	// 删除折旧信息
	depreciationDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/depreciation/delete?id=` + id });
	}
};
